import request from '@/http/index.js'
//验证码登录
export function mobilelogin(data) {
  return request({
    url: '/user/mobilelogin',
    method: 'POST',
    data,
    needLoading: true
  })
}
//发送验证码
export function send(data) {
  return request({
    url: '/sms/send',
    method: 'POST',
    data,
    needLoading: true
  })
}
//获取最新版本
export function version(data) {
  return request({
    url: `/home/version`,
    method: 'GET',
    data
  });
}
//获取二维码图片
export function images(data) {
  return request({
    url: `/expert/images`,
    method: 'GET',
    data,
    needLoading: true
  });
}
//获取专家信息
export function infotoid(data) {
  return request({
    url: `/user/infotoid`,
    method: 'GET',
    data,
    needLoading: true
  });
}
//邀请用户列表
export function shareUserList(data) {
  return request({
    url: `/user/shareUserList`,
    method: 'GET',
    data
  });
}
//获取用户个人中心信息
export function info(data) {
  return request({
    url: '/user/info',
    method: 'GET',
    data
  })
}